<template>
  <!--视图-->
  <div>

  </div>
</template>

<script>
export default {
  name: "RukuView",
  data() {//属性
    return {
      index:0,
      dynamicValidateForm: {
        name: '',
        productList: [{
          num : '1000',
          name:""
        }]
      }
    }
  }, methods: {//自定义方法
    submitForm() {

    },
    resetForm(formName) {
      this.$refs[formName].resetFields();
    },
    removeDomain(item) {
      var index = this.dynamicValidateForm.productList.indexOf(item)
      if (index !== -1) {
        this.dynamicValidateForm.productList.splice(index, 1)
      }
    }, addDomain() {
      this.dynamicValidateForm.productList.push({
        num: '1000',
        name:"哈哈",
        key: Date.now()
      });
    }
  }, created() { //钩子函数

  }
}
</script>

<style scoped>

</style>